home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Canadian & World Encyclopedia 1998
/
The Canadian & World Encyclopedia 1998 - Disc 2.iso
/
mac
/
prime_CD
/
pb
/
PROFILE.DIR
/
00058_Script_make sub fields
< prev
next >
Wrap
Text File
|
1997-07-29
|
1KB
|
29 lines
on makesubfields pm, cnum
put pm& "," & "annotations" into ref_fld
put pm& "," & "cap" into cap_fld
repeat with x = 1 to the number of lines of field ref_fld
set tmp to line x of field ref_fld
set hbio = item 2 of tmp
set pcredit = line (integer(item 3 of tmp)) of field cap_fld
delete item 1 of pcredit
set tscript = "tra_"&item 1 of tmp
put "PHOTO: "&pcredit&return&return into pp
new(#field, member (cnum + x) of castlib "Internal")
set the name of member (cnum + x) of castlib "Internal" to "sub_"&item 1 of tmp
-- set the backcolor of member (cnum + x) of castlib "Internal" to 2
-- set the fontStyle of member (cnum + x) of castlib "Internal" to "Geneva"
-- set the fontSize of member (cnum + x) of castlib "Internal" to 10
put pp&"TRANSCRIPT:"&return&the text of cast tscript &return&return&"COMMENTATOR: "&return&field hbio into member (cnum + x) of castlib "Internal"
end repeat
--put pp&"Transcript:"&return&the text of cast tscript &return&return&"Commentator: "&return&field hbio into field "sub_win text"
--set printtextcast = tscript
end